import { Request, Response } from 'express';

const generateDataSource = (req: Request, res: Response) => {
  const params = req.query;
  const { value } = params;
  res.json(!value ? [] : [value,
    `${value}${value}`,
    `${value}${value}${value}`,
  ]);
};

export default {
  'GET /_api/auto-complete-custom': generateDataSource,
};